package com.frejoys.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

// 用户钱包
@Data
// @EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("j_user_wallet")
public class UserWallet implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 用户id
    private Long userId;

    // 消费金额
    private BigDecimal spendMoney;

    // 余额
    private BigDecimal money;

    // 返利金额
    private BigDecimal rebateMoney;

    // 返利总金额
    private BigDecimal rebateMoneyTotal;

    // 服务商金额
    private BigDecimal agentMoney;

    // 服务商总金额
    private BigDecimal agentMoneyTotal;

    // 达人金额
    private BigDecimal activeMoney;

    // 达人总金额
    private BigDecimal activeMoneyTotal;

    // 积分，1元1积分，向下取整
    private BigDecimal score;

    // 总积分
    private BigDecimal scoreTotal;


}
